<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<input type="text" name="numOne" id="numOne" disabled>
<span id="symbol"></span>
<input type="text" name="numTwo" id="numTwo" disabled>
<span>=</span>
<input type="text" name="answer" id="answer">
<button id="dianji">计算</button>
<button id="dianji1">下一题</button>
</body>
<script type="text/javascript" th:src="@{js/jquery-3.2.1.min.js}"></script>
<script>
    var numOne = 1;
    var numTwo = 1;
    $('#dianji1').click( function f() {
        $('#numOne').val(numOne);
        $('#numTwo').val(numTwo)
        $('#answer').val("")
    })
    $('#dianji').click( function f() {
        $('#answer').val(numOne+numTwo)
    })



</script>
</html>